package com.ruoyi.xzs.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 卷库管理对象 x_paper
 * 
 * @author li
 * @date 2023-03-08
 */
public class Paper extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 试卷名称 */
    @Excel(name = "试卷名称")
    private String name;

    /** 学科编号 */
    private Long subjectId;

    /** 试卷类型（1.固定试卷 4.时段试卷 6.任务试卷 8.视频试卷） */
    @Excel(name = "试卷类型", readConverterExp = "1=.固定试卷,4=.时段试卷,6=.任务试卷,8=.视频试卷")
    private Long type;

    /** 建议时长（分钟） */
    @Excel(name = "建议时长", readConverterExp = "分=钟")
    private Long suggestTime;

    /** 试卷总分 */
    @Excel(name = "试卷总分")
    private Integer score;

    /** 题目数量 */
    @Excel(name = "题目数量")
    private Long questionCount;

    /** 时段试卷（开始时间） */
    @Excel(name = "时段试卷", readConverterExp = "开始时间")
    private Date limitStartTime;

    /** 时段试卷（结束试卷） */
    @Excel(name = "时段试卷", readConverterExp = "结束试卷")
    private Date limitEndTime;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createUser;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间")
    private Date createTime;

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSubjectId(Long subjectId) 
    {
        this.subjectId = subjectId;
    }

    public Long getSubjectId() 
    {
        return subjectId;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setSuggestTime(Long suggestTime) 
    {
        this.suggestTime = suggestTime;
    }

    public Long getSuggestTime() 
    {
        return suggestTime;
    }
    public void setScore(Integer score)
    {
        this.score = score;
    }

    public Integer getScore()
    {
        return score;
    }
    public void setQuestionCount(Long questionCount) 
    {
        this.questionCount = questionCount;
    }

    public Long getQuestionCount() 
    {
        return questionCount;
    }
    public void setLimitStartTime(Date limitStartTime) 
    {
        this.limitStartTime = limitStartTime;
    }

    public Date getLimitStartTime() 
    {
        return limitStartTime;
    }
    public void setLimitEndTime(Date limitEndTime) 
    {
        this.limitEndTime = limitEndTime;
    }

    public Date getLimitEndTime() 
    {
        return limitEndTime;
    }
    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("subjectId", getSubjectId())
            .append("type", getType())
            .append("suggestTime", getSuggestTime())
            .append("score", getScore())
            .append("questionCount", getQuestionCount())
            .append("limitStartTime", getLimitStartTime())
            .append("limitEndTime", getLimitEndTime())
            .append("createUser", getCreateUser())
            .append("createTime", getCreateTime())
            .toString();
    }
}
